/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.net.entitybean;

import oracle.jdbc.OracleTypes;
import queenb.net.annotation.Mapping;
import queenb.net.datacontrol.DataControl;
import queenb.web.util.ResourcesProvider;

/**
 *
 * @author Nguyen Hung
 */
public class S450 extends DataControl<S450> implements java.io.Serializable{
     @Mapping(name = "PS450", typeMapping = OracleTypes.INTEGER)
        private int PS450;
     @Mapping(name = "FS400", typeMapping = OracleTypes.INTEGER)
        private int FS400;
      @Mapping(name = "SV451", typeMapping = OracleTypes.CHAR)
        private String SV451;
       @Mapping(name = "SV452", typeMapping = OracleTypes.CHAR)
        private String SV452;
        @Mapping(name = "SV453", typeMapping = OracleTypes.CHAR)
        private String SV453;
         @Mapping(name = "SV454", typeMapping = OracleTypes.CHAR)
         
        private String SV454;
         @Mapping(name = "SV401", typeMapping = OracleTypes.CHAR)
         
        private String SV401;
           @Mapping(name = "STAT", typeMapping = OracleTypes.CHAR)
          private String start;
       @Mapping(name = "SL465", typeMapping = OracleTypes.CHAR)
          private String sl465;
        private String imageNameFile;
        private String offon;
        private String onoff;
    /**
     * @return the PS450
     */
    public int getPS450() {
        return PS450;
    }

    /**
     * @param PS450 the PS450 to set
     */
    public void setPS450(int PS450) {
        this.PS450 = PS450;
    }

    /**
     * @return the SV451
     */
    public String getSV451() {
        return SV451;
    }

    /**
     * @param SV451 the SV451 to set
     */
    public void setSV451(String SV451) {
        this.SV451 = SV451;
    }

    /**
     * @return the SV452
     */
    public String getSV452() {
        return SV452;
    }

    /**
     * @param SV452 the SV452 to set
     */
    public void setSV452(String SV452) {
        this.SV452 = SV452;
    }

    /**
     * @return the SV453
     */
    public String getSV453() {
        return SV453;
    }

    /**
     * @param SV453 the SV453 to set
     */
    public void setSV453(String SV453) {
        this.SV453 = SV453;
    }

    /**
     * @return the FS400
     */
    public int getFS400() {
        return FS400;
    }

    /**
     * @param FS400 the FS400 to set
     */
    public void setFS400(int FS400) {
        this.FS400 = FS400;
    }

    /**
     * @return the imageNameFile
     */
    public String getImageNameFile() {
        imageNameFile = ResourcesProvider.getDownloadFolder(getSV454());
       
        return imageNameFile;
    }

    /**
     * @param imageNameFile the imageNameFile to set
     */
    public void setImageNameFile(String imageNameFile) {
        this.imageNameFile = imageNameFile;
    }

    /**
     * @return the SV454
     */
    public String getSV454() {
        return SV454;
    }

    /**
     * @param SV454 the SV454 to set
     */
    public void setSV454(String SV454) {
        this.SV454 = SV454;
    }

    /**
     * @return the SV401
     */
    public String getSV401() {
        return SV401;
    }

    /**
     * @param SV401 the SV401 to set
     */
    public void setSV401(String SV401) {
        this.SV401 = SV401;
    }

    /**
     * @return the start
     */
    public String getStart() {
       
        return start;
    }

    /**
     * @param start the start to set
     */
    public void setStart(String start) {
        this.start = start;
    }

    /**
     * @return the offon
     */
    public String getOffon() {
        if(getSl465()!= null){
            offon = "true";
        }else{
            offon = "false";
        }
        return offon;
    }

    /**
     * @param offon the offon to set
     */
    public void setOffon(String offon) {
        this.offon = offon;
    }

    /**
     * @return the onoff
     */
    public String getOnoff() {
        if(getSl465()!= null){
            onoff = "false";
        }else{
            onoff = "true";
        }
        return onoff;
    }

    /**
     * @param onoff the onoff to set
     */
    public void setOnoff(String onoff) {
        this.onoff = onoff;
    }

    /**
     * @return the sl465
     */
    public String getSl465() {
        return sl465;
    }

    /**
     * @param sl465 the sl465 to set
     */
    public void setSl465(String sl465) {
        this.sl465 = sl465;
    }
        
}
